/*
 * @Author: 邱狮杰
 * @Date: 2021-09-05 12:18:07
 * @LastEditTime: 2021-09-05 12:20:41
 * @FilePath: /new-hope/src/hooks/bus.ts
 * @Description: 描述
 */

import { getCurrentInstance } from "vue";
import Bus from "/@/utils/bus";

export function useBus(): Bus {
  const instance = getCurrentInstance();
  return instance?.appContext.config.globalProperties.$bus;
}
